package com.riaya.entity.vo;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 *  实体类。
 *
 * @author Administrator
 * @since 2025-07-24
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table("goods_detail")
public class DetailVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @Id(keyType = KeyType.Auto)
    private Integer id;

    /**
     * 分类编号
     */
    @Column("sortId")
    private Integer sortId;

    /**
     * 产品名
     */
    private String name;

    /**
     * 产地
     */
    private String address;

    /**
     * 单价
     */
    private BigDecimal price;

    /**
     * 生产日期
     */
    @Column("createDate")
    private LocalDateTime createDate;

    /**
     * 剩余数量
     */
    private Integer remaining;

    private String sortName;

}
